<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <blockquote class="layui-elem-quote">上线运行后不建议修改任何配置，否则可能造成数据丢失，如果要迁移、停用、删除该位置，请进入操作面板操作</blockquote>
        <div class="layui-form-item">
            <label class="layui-form-label">存储前缀</label>
            <div class="layui-input-block">
                <input type="text" name="prefix_path" class="layui-input" lay-verify="required" placeholder="请输入存储前缀" value="{$row.prefix_path|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">存储空间限制</label>
            <div class="layui-input-block">
                <input type="text" name="size_limit" class="layui-input" lay-verify="required" placeholder="请输入存储空间限制" value="{$row.size_limit|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">权重</label>
            <div class="layui-input-block">
                <input type="text" name="weight" class="layui-input" lay-verify="required" placeholder="请输入权重" value="{$row.weight|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">存储区域</label>
            <div class="layui-input-block">
                <select name="group_id" lay-verify="required" data-select="{:url('storage.position_group/index')}" data-fields="id,title" data-value="{$row.group_id}">

                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" lay-filter="config-type" disabled>
                    <option value=''></option>
                    {foreach $select_list_type as $k=>$v}
                    <option value='{$k}' {in name="k" value="$row.type" }selected="" {/in}>{$v}</option>
                    {/foreach}
                </select>
                <tip>不能修改存储位置的类型</tip>
            </div>
        </div>
        {include file='storage/position/form_item/index'/}
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>